
<fieldset><legend>我的银行帐号</legend>
<table>
	<tr align="center">
		<th width="40">序号</th>
		<th>开户行</th>
		<th>分支行</th>
		<th>开户名</th>
		<th>账号</th>
		<th>状态</th>
	</tr>
	{[foreach name=outer key=key item=item from=$my]} 
	{[assign var="no" value="`$key+$pager->from+1`"]}
	<tr align="center" onMouseOver="this.style.backgroundColor='#D2E4FC'" onMouseOut="this.style.backgroundColor=''">
		<td>{[$no]}</td>
		<td>{[$item.bank]}</td>
		<td>{[$item.branch]}</td>

		<td>{[$item.name]}</td>
		<td>{[$item.code]}</td>
		<td>{[$item.status_t]}</td>
	</tr>
	{[/foreach]}
</table>
</fieldset>

<fieldset><legend>添加银行帐号</legend>
<form id="form_add">
	<input type="hidden" name="id" value="{[$smarty.request.id]}" />
	<table>
		<tr>
			<td align="right">客户：</td>
			<td colspan="3">{[$customer.fullname]}({[$customer.code]})</td>
		</tr>
		<tr>
			<td align="right">开户行：</td>
			<td colspan="3"><input type="text" name="bank" id="bank"
				size="20" value=""> <select name='bank_t' id='bank_t'>
					{[html_options options=$bank_option selected=-]}
			</select> <select name='category' id='category'> {[html_options
					options=$category_option selected=1]}
			</select></td>
		</tr>
		<tr id="label_1">
			<td align="right">分支行：</td>
			<td colspan="3"><input type="text" name="branch" id="branch"
				size="32" value=""></td>
		</tr>
		<tr id="label_2">
			<td width="20%" align="right">省份：</td>
			<td width="30%"><input type="text" name="province"
				id="province" size="12" value="广东"></td>
			<td width="20%" align="right">类型：</td>
			<td width="30%"><select name='type'> {[html_options
					options=$type_option selected=2]}
			</select></td>
		</tr>
		<tr id="label_3">
			<td align="right">市县：</td>
			<td><input type="text" name="city" id="city" size="12"
				value="深圳"></td>
			<td align="right">地区码：</td>
			<td><input type="text" name="zone" id="zone" size="8"
				value="0755"></td>
		</tr>
		<tr id="label_9">
			<td align="right">Swift Code：</td>
			<td colspan="3"><input type="text" name="swift" size="20"
				value=""></td>
		</tr>
		<tr>
			<td align="right">户名：</td>
			<td colspan="3"><textarea rows="2" name="name" cols="55">{[$customer.fullname]}</textarea></td>
		</tr>
		<tr>
			<td width="20%" align="right">账号：</td>
			<td colspan="3"><input type="text" name="code" id="code"
				size="32" value=""></td>
		</tr>
		<tr>
			<td align="right">备注：</td>
			<td colspan="3"><textarea rows="3" name="content" cols="55">{[$result.content]}</textarea></td>
		</tr>
	</table>
</form>
</fieldset>

<script type="text/javascript"
	src="js/finance/bank/bank.js?r={[$smarty.now]}"></script>
<script type="text/javascript"
	src="js/contact/bank/add.js?r={[$smarty.now]}"></script>
